/*
* AbstractAccount
*
* r1
*
* GNU General Public License v3.0
*/

package com.acme.bankapp.domain.bank;

public abstract class AbstractAccount {
	
	protected double balance;
	
	protected AbstractAccount(double balance) {
		this.balance = balance;
	}
	
	public void deposit(double amount) {
		this.balance += amount;
	}

	public double getBalance() {
		return this.balance;
	}
	
	public abstract void withdraw(double amount);
	
	public abstract double maximumAmountToWithdraw();
	
}
